package sliver.action.advertisement;

import java.util.Map;

import org.apache.struts2.interceptor.RequestAware;
import org.apache.struts2.interceptor.SessionAware;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import sliver.entity.Advertiser;

import com.opensymphony.xwork2.ActionSupport;

@Scope("prototype")
@Controller("advertisement.toListCarteAdvertisementsAction")
public class ToListCarteAdvertisementsAction extends ActionSupport implements RequestAware, SessionAware{

	private static final long serialVersionUID = -1222584074048943940L;
	
	private Map<String, Object> request;
	private Map<String, Object> session;
	
	public ToListCarteAdvertisementsAction(){
		
	}
	
	@Override
	public void setRequest(Map<String, Object> request) {
		this.request = request;
	}
	
	@Override
	public void setSession(Map<String, Object> session) {
		this.session = session;
	}
	
	@Override
	public String execute() throws Exception {
		
		Advertiser advertiser = Advertiser.class.cast(session.get("login_advertiser"));
		
		return super.execute();
	}
}
